package com.book.breakage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author: 张高赫
 * @Description:  20173954
 */

@Data
@Accessors(chain = true)
@Excel("图书退回报损表")
@TableName("breakage_accident")
public class Accident {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    @ExcelField("负责人")
    private String username;

    @TableField("message")
    @ExcelField("报损说明")
    private String message;

    @TableField("pubid")
    @ExcelField("出版社")
    private String pubid;

    @TableField("bookname")
    @ExcelField("图书名称")
    private String bookname;

    @TableField("bookmoney")
    @ExcelField("单价")
    private Integer bookmoney;

    @TableField("booktype")
    @ExcelField("图书类型")
    private String booktype;

    @TableField("number")
    @ExcelField("报损数量")
    private Integer number;

    @TableField("principal")
    @ExcelField("损坏人姓名")
    private String principal;

    @TableField("damagedate")
    @ExcelField("报损日期")
    private Date damagedate;

    @TableField("status")
    private String status;

    @TableField("breakageid")
    private String breakageid;

    @TableField("totalmoney")
    private Integer totalmoney;
}
